using System;
using System.Text;

namespace SmallMvc
{
    public static class StringExtensions
    {
        public static string Indent(this string @this)
        {
            var rawResult = new StringBuilder();

            foreach (var line in @this.Split(new[] { '\n' }, StringSplitOptions.RemoveEmptyEntries))
            {
                rawResult.Append("    ").Append(line).AppendLine();
            }
            return rawResult.ToString();
        }
    }
}